<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    <script src="http://127.0.0.1/my/wasai/Static/Js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/my/wasai/Static/hdjs/hdjs.css"/>
    <script src="http://127.0.0.1/my/wasai/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/my/wasai/Static/bootstrap/css/bootstrap.min.css"/>
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-form hd-form">
        <thead>
        <tr>
            <td width="30"></td>
            <td width="80">属性ID</td>
            <td width="150">属性名称</td>
            <td width="150">属性类别</td>
            <td>属性值</td>
            <td width="200">操作&nbsp;<a href="<?php echo U('Admin/Type/add',array('tid'=>Q('get.tid')));?>" class="hd-btn hd-btn-primary hd-btn-xm">添加属性</a></td>
        </tr>
        </thead>
        <tbody>
            <?php foreach ($attr as $k=>$v){?>
	            <tr>
		            <td width="30"></td>
		            <td width="80"><?php echo $v['taid'];?></td>
		            <td width="150"><?php echo $v['taname'];?></td>
		            <td width="150">    <?php if($v['class']==0){ ?>属性<?php }else{ ?>规格<?php } ?></td>
		            <td><?php echo $v['tavalue'];?></td>
		            <td width="200">
		            	<a href="<?php echo U('Admin/Type/edit',array('taid'=>$v['taid']));?>" class="hd-btn hd-btn-primary hd-btn-xm">编辑</a>
						<a href="<?php echo U('Admin/Type/del',array('taid'=>$v['taid']));?>" class="hd-btn hd-btn-danger hd-btn-xm">删除</a>
		            </td>
	        	</tr>
        	<?php }?>
        </tbody>
       
    </table>
    
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


